/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wnsimex.auxilliary;

import configuration.PropertiesHandler;

/**
 *
 * @author artem
 */
public class Multiprocessor {

    private int cores;
    
    public Multiprocessor() {
    }
    
    public int getCores(){
        cores = Runtime.getRuntime().availableProcessors();
        return cores;
    }
    
    public int getNumberOfThreadsPerCore(){
        int ret = 0;
        PropertiesHandler ph = new PropertiesHandler("main");
        int nodes = ph.getInt("nodes");
        ret = nodes/cores;
        return ret;
    }

}
